<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>老师登录</title>
    <style>
        body { 
            font-family: Arial, sans-serif; 
            background-color: #f4f4f4; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            height: 100vh; 
            margin: 0; 
        }
        .login-container {
            background-color: #fff; 
            padding: 30px; 
            border-radius: 8px; 
            box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
            width: 350px; 
            text-align: center; 
        }
        h2 { 
            color: #333; 
            margin-bottom: 25px; 
        }
        .form-group {
            margin-bottom: 15px; 
            text-align: left; 
        }
        .form-group label {
            display: block; 
            margin-bottom: 8px; 
            color: #555; 
            font-weight: bold; 
        }
        .form-group input[type="text"],
        .form-group input[type="password"],
        .form-group input[type="email"] {
            width: calc(100% - 20px); 
            padding: 10px; 
            border: 1px solid #ddd; 
            border-radius: 4px; 
            font-size: 16px; 
        }
        .btn-login {
            background-color: #007bff; 
            color: white; 
            padding: 12px 20px; 
            border: none; 
            border-radius: 5px; 
            cursor: pointer; 
            font-size: 18px; 
            width: 100%; 
            transition: background-color 0.3s ease; 
            margin-top: 20px; 
        }
        .btn-login:hover {
            background-color: #0056b3; 
        }
        .message {
            color: red; 
            margin-top: 15px; 
            font-size: 14px; 
        }
    </style>
</head>
<body>
    <div class="login-container">
        <h2>老师登录</h2>
        <form action="laoshi_login" method="post">
            <div class="form-group">
                <label for="teacherNumber">工号:</label>
                <input type="text" id="teacherNumber" name="teacherNumber" required>
            </div>
            <div class="form-group">
                <label for="password">密码:</label>
                <input type="password" id="password" name="password" required>
            </div>
            <div class="form-group">
                <label for="email">邮箱:</label>
                <input type="email" id="email" name="email" required>
            </div>
            <button type="submit" class="btn-login">登录</button>
        </form>
        <p class="message"><c:out value="${errorMessage}"/></p>
    </div>
</body>
</html> 